const common = require("./webpack.common.js");
const { merge } = require("webpack-merge");

const { CleanWebpackPlugin } = require("clean-webpack-plugin");
const copyWebpackPlugin = require("copy-webpack-plugin");

module.exports = merge(common, {
    mode: "production",
    plugins: [
        new CleanWebpackPlugin(),
        new copyWebpackPlugin({
            patterns: [{ from: "public/favicon.ico", to: "public/favicon.ico" }],
        }),
    ],
});
